home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-10-05 | 1.6 KB | 42 lines | [TEXT/ttxt] |
-
- Prograph CopyPix contains two extensions, CopyPix and CopyPixMask. The reason
- these exist at all is because usually CopyBits will accept either a BitMap or
- a PixMap, but because of Prograph CPX's type checking, a PixMap will not work.
-
-
- pascal void CopyPix (const PixMap *srcBits, const PixMap *dstBits, const Rect
- *srcRect, const Rect *dstRect, short mode, RgnHandle maskRgn);
-
- You can use the CopyPix procedure to copy a portion of a PixMap from one graphics
- port (or offscreen graphics world) into another graphics port.
-
- PROCEDURE CopyBits (srcBits,dstBits: PixMap;
- srcRect,dstRect: Rect; mode: Integer;
- maskRgn: RgnHandle);
-
- srcBits The source PixMap record.
- dstBits The destination PixMap record.
- srcRect The source rectangle.
- dstRect The destination rectangle.
- mode One of the eight source modes in which the copy is to be performed.
- maskRgn A region to use as a clipping mask.
-
-
-
- pascal void CopyPixMask (const PixMap *srcBits, const PixMap *maskBits, const
- PixMap *dstBits, const Rect *srcRect, const Rect *maskRect, const Rect *dstRect);
-
- You can use the CopyPixMask procedure to copy pixel image from one graphics port
- (or offscreen graphics world) into another graphics port only where the bits in
- a mask are set to
-
- PROCEDURE CopyPixMask(srcBits,maskBits,dstBits:PixMap; srcRect,maskRect,dstRect: Rect);
-
- srcBits The source PixMap record.
- maskBits The mask PixMap record.
- dstBits The destination PixMap record.
- srcRect The sourcerectangle.
- maskRect The mask rectangle. This must be the same size as the rectangle passed
- in the srcRect parameter.
- dstRect The destination rectangle.
-